# -*- coding: utf-8 -*-
"""
Created on Tue Oct 31 19:57:25 2023

@author: 楠川之木
"""

import pickle
student={'张三':75,'李四':80,'王飞':69}
with open('student.dat','wb') as fp:
    pickle.dump(student,fp)
with open('student.dat','rb') as fp:
    print(pickle.load(fp))